<template>
  <section class="component case-overview">
    <common-title title="案件概况" :showIcon="false"></common-title>
    <div class="row">
      <div v-for="(item,index) of dataList" :key="index" class="col-span info">
        <div :class="item.color">
          <div class="row between-span number" style="height:80px;width:80px;float:left">
            <svg-icon :iconName="item.iconName" style="margin: auto;" iconSize="48"></svg-icon>
          </div>
          <div style="width:calc(100%-120px)">
            <div class="title">{{item.name}}</div>
            <div class="number1">{{item.value}}</div>
          </div>
        </div>
      </div>
    </div>

  </section>
</template>

<script lang="ts">
import Vue from "vue";
import Component from "vue-class-component";
import { Dependencies } from "~/core/decorator";
import SvgIcon from "~/components/common/svg-icon.vue";
import { Prop } from 'vue-property-decorator'

@Component({
  components: {}
})
export default class CaseOverview extends Vue {
  @Prop() private data
  @Prop() private menuType

  private get dataList() {
    return Object.values(this.data).filter((item: any) => !item.hidden.includes(this.menuType))
  }
}
</script>

<style lang="less" scoped>
.component.case-overview {
  .info {
    padding-left: 0;
    margin: 5px;
    box-shadow: 0 0 3px 3px #f2f2f2;
    &:hover {
      box-shadow: 0 0 3px 3px #c5c3c3;
    }
    .title {
      font-size: 16px;
      color: #000000;
      padding-top: 20px;
      text-align: center;
      display: block;
    }
    .number {
      font-weight: bold;
      margin: auto;
      margin-right: 10px;
      // padding: 5px 15px;
      // border-radius: 12px;
    }
    .number1 {
      color: #cccccc;
      font-weight: bold;
      margin: auto;
      // padding-left: 120px;
      // margin-right: 10px;
      text-align: center;
    }
  }

  .light-green {
    color: #e8f5e9;
    .number {
      background-color: #6bbd6f;
    }
  }
  .light-purple {
    color: #ffebee;
    .number {
      background-color: #9674ce;
    }
  }
  .light-blue {
    color: #e7f7ff;
    .number {
      background-color: #18b0f4;
    }
  }
}
</style>
